﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _7
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入第一个数");
            int a = int.Parse(Console.ReadLine());

            Console.WriteLine("请输入第一个数");
            int b = int.Parse(Console.ReadLine());

            Console.WriteLine("请选择运算符");
            Console.WriteLine("1.+ 2.- 3.* 4./");
            int c = int.Parse(Console.ReadLine());
            Fang fa = new Fang();

            switch (c)
            {
                case 1:
                    Jia jia = new Jia(a, b);
                    fa.calculate(jia);
                        break;
                case 2:
                    Jian jian = new Jian(a, b);
                    fa.calculate(jian);
                    break;
                case 3:
                    Chen chen = new Chen(a, b);
                    fa.calculate(chen);
                    break;
                case 4:
                    Chu chu = new Chu(a, b);
                    fa.calculate(chu);
                    break;
                default:
                    break;
            }
            
            
        }
    }
}
